#ifndef FITNESS_BINARIA_CU
#define FITNESS_BINARIA_CU

#include "fitnessBinaria.cuh"
#include "../utils/global.cuh"

float calcularFitnessBinariaCPU(bool* poblacion, int posicion){
	float fitness = 0;
	for(int i = 0; i < cantGenesEnCromosoma; i++){
		fitness = fitness + poblacion[posicion + i];
	}
	return fitness;
}

__device__ float calcularFitnessBinariaGPU(bool* poblacion, int posicion){
	float fitness = 0;
	for(int i = 0; i < cantGenesEnCromosomaDevice; i++){
	  fitness = fitness + poblacion[posicion + i];
	}
	return fitness;
}

#endif

